<?php

namespace Modules\ShopApi\Models;
use Modules\Admin\Services\UserService; 
class ShopCouple extends BaseApiModel
{	
	/**
	 * @name  意见反馈
	 */
	public function set_couple($data){
		$user_info = (new UserService())->my();
		$data['user_id'] = $user_info['id'];
		$data['created_at'] = date('Y-m-d H:i:s');
		if($this->insert($data)){
			return $this->api_success();
		}else{
			return $this->api_error();
		};
	}
	
}
